package com.ruoyi.system.domain.info;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.PrimitiveIterator;

@Data
@Schema(description = "应用信息")
public class PackageInfo {

    // 自动解析字段
    @Schema(description = "应用包名")
    private String packageName;
    @Schema(description = "版本号")
    private String versionCode;

    @Schema(description = "版本编号")
    private  String versionnumber;
    @Schema(description = "最低系统版本要求")
    private String minSystemVersion;
    @Schema(description = "开发商")
    private String devSupplier;



    // 图标相关
    @Schema(description = "图标")
    private byte[] iconBytes;
    @Schema(description = "图标名称")
    private String iconName;

    @Schema(description = "图标URL")
    private String iconUrl;


    @Schema(description = "原始字节大小（供后端 存储/校验）")
    private Double fileSizeMB;
    @Schema(description = " 格式化后的 MB 字符串（供前端显示）")
    private String formattedSize;

    @Schema(description = "MD5")
    private String packageHash;

    @Schema(description = "应用包URL")
    private String packageUrl;
    @Schema(description = "SDK要求")
    private  String sdkRequirement;
}